﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="demo_page5Modify.aspx.cs" Inherits="Demo.demo_page5Modify" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="Styles/azure/style.css" rel="stylesheet" type="text/css" />
    <link href="Styles/css/core.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script src="Scripts/Public.js" type="text/javascript"></script>
    <script type="text/javascript">
        //验证地址，自定义函数验证，必须为中文
        function VaildAddress() {
            var tt = $("#txtAddress");
            if (tt.val() == "") return false;
            var reg = /[^\u4E00-\u9FA5]/;
            if (!reg.test(tt.val())) {
                return true;
            }
            return false;
        }
        function IsSave() {
            //            if (validateControls()) {
            parent.alertMsg.confirm("是否确认执行保存?", {
                okCall: function () {
                    Public.CallBack("lbtn_Save", "");
                }
            });
            //            } else {
            //                return false;
            //            }
        }
        //        $(function () {
        //            var $p = $(document);
        //            $("div.button", $p).hoverClass("buttonHover");
        //            $("div.buttonActive", $p).hoverClass("buttonActiveHover");
        //        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager> 
    <div>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <fieldset style="text-align:center;">
           <table style="width:200px;text-align:center;margin:0 auto;padding:0 auto;" cellspacing=0 cellpadding=0 border=0 align="center">
              <tr>
                <td><a class="button" onclick="javascript:IsSave();return false;" href="javascript:void(0);"><span>保存</span></a></td>
                <td><a class="button" onclick="javascript:Public.CloseWindow();return false;" href="javascript:void(0);"><span>关闭</span></a></td>
              </tr>
           </table>      
        </fieldset>
        <div style="display:none;"><asp:LinkButton ID="lbtn_Save" runat="server" onclick="lbtn_Save_Click"></asp:LinkButton> </div>
    </ContentTemplate>
    </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>
